package example

object Hello extends Greeting with App {
  println(greeting)
}

trait Greeting {
  lazy val greeting: String = "hello"
}

object Solution {
  def solution(A: Array[Int]): Int = {
    val sorted = A.sorted
    val len = sorted.length
    val max = sorted(len - 1) * sorted(len - 2) * sorted(len - 3)
    val min = sorted(0) * sorted(1) * sorted(len - 1)
    max - min
  }
  def main(args: Array[String]): Unit = {
    println("fuckyou" )
  }
}
